package com.marvels.approve.loan.dao;

import com.marvels.approve.loan.dto.McamAutoDecisionRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface McamAutoDecisionRecordMapper {
    int deleteByPrimaryKey(Long id);
    
    int deleteByLoanId(String loanId);

    int insert(McamAutoDecisionRecord record);

    int insertSelective(McamAutoDecisionRecord record);

    McamAutoDecisionRecord selectByPrimaryKey(Long id);
    
    List<McamAutoDecisionRecord> selectByDecisionId(@Param("decisionId") Long decisionId, @Param("status") String status);

    int updateByPrimaryKeySelective(McamAutoDecisionRecord record);

    int updateByPrimaryKey(McamAutoDecisionRecord record);
}